<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Test</title>
</head>
<body>
<h1>test-for-thymeleaf</h1>
<!-- 所有的html元素都可以被 thymeleaf 替换接管  th:元素名 -->
<div th:text="${msg}"></div>

<hr>
<h3 th:each="user:${users}" th:text="${user}"></h3>    <!-- 【推荐方式】 -->

<hr>
<h3 th:each="user:${users}"> [[ ${user} ]] </h3>

</body>
</html>

